﻿<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>修改图书</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f4f4f4;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
    }
    h1 {
      text-align: center;
      color: #333;
    }
    form {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      width: 300px;
    }
    fieldset {
      border: none;
      padding: 0;
    }
    legend {
      font-size: 1.5em;
      margin-bottom: 10px;
      color: #555;
    }
    table {
      width: 100%;
    }
    tr {
      border-bottom: 1px solid #ddd;
    }
    td {
      padding: 10px;
    }
    td label {
      display: block;
      margin-bottom: 5px;
      color: #555;
    }
    input[type="text"] {
      width: 100%;
      padding: 8px;
      margin-bottom: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    input[type="submit"] {
      width: 100%;
      padding: 10px;
      background-color: #5cb85c;
      border: none;
      border-radius: 4px;
      color: white;
      font-size: 1em;
      cursor: pointer;
    }
    input[type="submit"]:hover {
      background-color: #4cae4c;
    }
  </style>
</head>
<body>
<form method="post">
  <fieldset>
    <legend>修改图书信息</legend>
    <table>
      <tr>
        <td><label for="id">Id</label></td>
        <td><input type="text" id="id" name="id" value="<%= data.id %>" disabled /></td>
      </tr>
      <tr>
        <td><label for="bookname">书名</label></td>
        <td><input type="text" id="bookname" name="bookname" value="<%= data.bookname %>" /></td>
      </tr>
      <tr>
        <td><label for="author">作者</label></td>
        <td><input type="text" id="author" name="author" value="<%= data.author %>" /></td>
      </tr>
      <tr>
        <td><label for="press">出版社</label></td>
        <td><input type="text" id="press" name="press" value="<%= data.press %>" /></td>
      </tr>
      <tr>
        <td><label for="stock">库存</label></td>
        <td><input type="text" id="stock" name="stock" value="<%= data.stock %>" /></td>
      </tr>
    </table>
    <input type="submit" value="提交修改" />
  </fieldset>
</form>
</body>
</html>